﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace WallpaperChanger.Core
{
    public class Photo
    {
        public Resolution Resolution { get { return Image != null ? new Resolution(Image.Width, Image.Height) : default(Resolution); } }

        public Bitmap Image { get; set; }

        public string Title { get; set; }

        public string Description { get; set; }

        public DateTime PublishedAt { get; set; }

        public string Category { get; set; }

        public string Artist { get; set; }

        public PhotoType WallpaperType { get; set; }

        public Dictionary<string, string> MetaData { get; private set; }

        public Photo()
        {
            MetaData = new Dictionary<string, string>();
        }
    }

    public enum PhotoType
    {
        Art,
        Photograph
    }
}
